package io.gitee.yxsnake.framework.idempotent.config;

import io.gitee.yxsnake.framework.idempotent.aspectj.RepeatSubmitAspect;
import io.gitee.yxsnake.framework.redis.config.RedisConfig;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author snake
 * @description 幂等功能配置
 * @since 2024/11/3 1:59
 */
@AutoConfiguration(after = RedisConfig.class)
public class IdempotentAutoConfiguration {

    @Bean
    public RepeatSubmitAspect repeatSubmitAspect() {
        return new RepeatSubmitAspect();
    }

}
